<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="CSS/style.css" type="text/css"/>
<title>Untitled Document</title>
</head>

<body>
<div id="wrapper">
<div class="shadow">
<div id="header">
<?php

include("header.php");


?>
</div>

 
<br /><center><h2>Login</h2>
<hr  color="#CCCCCC" width="500px" align="center" />
<?php
require_once ("includes/mysql_connect.php");
$query = "SELECT user_id, identitate, password FROM admin WHERE identitate = 'teo'";
$result = mysql_query($query);

$row = mysql_fetch_array($result, MYSQL_ASSOC);

if($result)
{
	if ($row['password'] == $_POST['parola'])
	{
		echo "<br>Parola este corecta";
		echo "<br><a href='manage.php'>Manage page</a>";
	}
	else 
	{
		echo "<br><font color='red'>Invalid username or password.</font>";
	}
}

?></center>
<div class="footer">
<?php

include ("footer.php");

?>

</div>
</div>
</body>
</html>
